/*!*********************************************************************************
 * X2Engine Open Source Edition is a customer relationship management program developed by
 * X2 Engine, Inc. Copyright (C) 2011-2019 X2 Engine Inc.
 * 
 * This program is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Affero General Public License version 3 as published by the
 * Free Software Foundation with the addition of the following permission added
 * to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
 * IN WHICH THE COPYRIGHT IS OWNED BY X2ENGINE, X2ENGINE DISCLAIMS THE WARRANTY
 * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
 * 
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE.  See the GNU Affero General Public License for more
 * details.
 * 
 * You should have received a copy of the GNU Affero General Public License along with
 * this program; if not, see http://www.gnu.org/licenses or write to the Free
 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 * 02110-1301 USA.
 * 
 * You can contact X2Engine, Inc. P.O. Box 610121, Redwood City,
 * California 94061, USA. or at email address contact@x2engine.com.
 * 
 * The interactive user interfaces in modified source and object code versions
 * of this program must display Appropriate Legal Notices, as required under
 * Section 5 of the GNU Affero General Public License version 3.
 * 
 * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
 * these Appropriate Legal Notices must retain the display of the "Powered by
 * X2 Engine" logo. If the display of the logo is not reasonably feasible for
 * technical reasons, the Appropriate Legal Notices must display the words
 * "Powered by X2 Engine".
 **********************************************************************************/




@import "standards";
@import "colors"; 

$eventTextColor: rgb(19, 19, 19);


table.page-title {
    background: $defaultTitleBar;
    
    /* @theme background: highlight1 */

    display: block;
    height: 19px;
    box-sizing: border-box;
    tbody {
        display: block !important;
        width: 100%;
    }
    tr {
        display: block !important;
        width: 100%;
    }
    .fc-header-left {
        float: left !important;
        display: block !important;
        height: 10px;
    }
    @include overThreshold ($mobileThreshold) {
        .fc-header-right {
            float: right !important;
            display: block !important;
            width: 36%;
        }
    }
}



#calendar {
    margin-right: 20px;
  
    .fc-event {
        color: $eventTextColor;
        border: 1px solid rgb(34, 34, 255) !important;
        border-radius: 0 !important;
        padding: 2px;
    }

    .fc-border-separate th, .fc-border-separate td {
        border: 1px solid $lightGray;
        border-width: 1px 0 0 1px;
    }
    .fc-border-separate tbody tr.fc-first td, .fc-border-separate tbody tr.fc-first th {
        border-top-width: 0;
    }
    td.fc-today {
        border: 1px solid black;
        background: $lightestGray;
        div div.fc-day-number {
            font-weight: bold;
            font-size: 16px;
        }
    }
    .fc-border-separate tr.fc-last th, .fc-border-separate tr.fc-last td {
        border-bottom-width: 1px;
    }
    .fc-border-separate th.fc-last, .fc-border-separate td.fc-last {
        border-right-width: 1px;
    }
}

#publisher-tabs-row-1 {
    border-right: 1px solid rgb(204, 204, 204); 
}


.ui-dialog {
    height: auto !important;
}

.ui-dialog .ui-dialog-content {
    height: auto !important;
}

.fc-first.fc-last {
    background: white;
}

#content {
    background: none !important;
    border: none !important;
}
#main-column {
    margin-top: 0 !important;
}

#publisher  {
    .ui-tabs-anchor {
        font-weight: bold;
        color: rgb(88, 88, 88);
    }
    &.ui-tabs .ui-tabs-nav > li.ui-state-active {
      border-color: #D1D1D1;
      border-bottom-color: #eee;
      background: $background;
      /* @theme border-bottom-color: content */
      /* @theme background: content */
    }
}

.calendarViewEventDialog .ui-dialog-buttonpane button {
    padding: 0 2px 0 2px !important;
    margin: 4px 0 4px 4px !important;
    font-size: 9pt !important;
}

/* make publisher tab look like ordinary section title */

#publisher.ui-tabs .ui-tabs-nav {
    background: none;
    padding: 0px;
    display: block;
    margin-right: 1px !important;
}

#publisher li.ui-tabs-active {
    width: 100%;
    margin-right: 6px;
    display: block;
    border-bottom: none;
    margin: auto;
    margin-bottom: -2px;
}

#publisher > .form {
   border-radius: 0px 0px 4px 4px;
   -moz-border-radius: 0px 0px 4px 4px;
   -webkit-border-radius: 0px 0px 4px 4px;
   -o-border-radius: 0px 0px 4px 4px;
}

li.user-calendar-entry {
    display: flex;
}

.calendar-checkbox{
    margin-right: 5px;
}

.calendar-edit-button{
    margin-left: auto;
}

.calendar-name{
}

.x2-button.icon.edit.minimal {
    border: none;
    background: none;
    padding: 0px;    
}
